package com.offcn.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * @author: Mr.Chu
 * @create: 2021-06-13 22:58
 * @Description //TODO
 **/

public class Student implements Serializable {//new student
    private int sid;
    private String sname;

    //引入一个中间表，一对多的关联关系
    private List<StudentTeacher> studentTeacher;

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public List<StudentTeacher> getStudentTeacher() {
        return studentTeacher;
    }

    public void setStudentTeacher(List<StudentTeacher> studentTeacher) {
        this.studentTeacher = studentTeacher;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", studentTeacher=" + studentTeacher +
                '}';
    }
}
